package pers.vic.system.test.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import pers.vic.system.test.service.JustTestService;

/**
 * 用户测试的controller
 * @author VIC
 *
 */
@Controller
@RequestMapping("/common/test")
public class JustTestController {
	
	@Resource
	private JustTestService justTestService;
	
	
	public static void main(String[] args) {
		
		String uri = "http://www.baidu.com?a=123;js=22222";
		System.out.println(uri);
		int queryStartIndex = uri.indexOf('?');
        if (queryStartIndex >= 0) { //get rid of the query string
            uri = uri.substring(0, queryStartIndex);
        }
        System.out.println(uri);
	}
	
	


}
